package com.nulldev.util.internal.android_compat.atomics.impl.stubs;

import com.nulldev.util.internal.android_compat.atomics.IPsuedoAtomic;

public class FakeAtomicReference<T> implements IPsuedoAtomic<T> {

	private volatile T val;

	public FakeAtomicReference() {
	}

	public FakeAtomicReference(final T initialValue) {
		this.val = initialValue;
	}

	@Override
	public void lazySetValue(T val) {
		this.val = val;
	}

	@Override
	public void setValue(T val) {
		this.val = val;
	}

	@Override
	public T getValue() {
		return this.val;
	}

}
